﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Event : Contribution
    {
        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Tema")]
        public virtual string Subject { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Local")]
        public virtual string Location { get; set; }

        [DisplayName("Detalhes")]
        public virtual string Details { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Início")]
        public virtual DateTime StartDate { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Término")]
        public virtual DateTime EndDate { get; set; }

        [DisplayName("Palestrante(s)")]
        public virtual string Author { get; set; }

        [DisplayName("Descrição dos palestrantes")]
        public virtual string AuthorDescription { get; set; }
    }
}
